import java.util.TimerTask;

public class MyClock extends TimerTask{
   
    private int timeLeft = 60;//default time
    private boolean pause = false;
    /** Creates a new instance of GameClock */
    TicTacToe iMS=null;
    
    public MyClock(TicTacToe m) {
    	iMS=m;
    }
   
    public MyClock(int value){
        timeLeft = value;
    }
   
    public void run(){
    	iMS.received_cmd(MyRMS.get_cmd());
    }
   
    public void pause(){
        pause = true;
    }
   
    public void resume(){
        pause = false;
    }
   
    public int getTimeLeft(){
        return timeLeft;
    }
   
    public void setTimeLeft(int _value){
        this.timeLeft = _value;
    }
}